package com.student.service;

import com.student.dao.StudentMapper;
import com.student.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * @author 是一个鸽子啊
 * @date 2020/4/14
 * @qq 364826415
 */
@Service
public class StudentServiceImpl implements StudentService{
    private StudentMapper studentMapper;
    @Autowired
    public void setStudentMapper(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public Student queryStudentByID(int studentID) {
        return studentMapper.queryStudentByID(studentID);
    }

    @Override
    public int delStudentByID(int studentID) {
        return studentMapper.delStudentByID(studentID);
    }

    @Override
    public int updateStudent(Student student) {
        return studentMapper.updateStudent(student);
    }

    @Override
    public List<Student> querStudentByNameA(Map map) {
        return studentMapper.querStudentByNameA(map);
    }

    @Override
    public int addStudent(Student student) {
        return studentMapper.addStudent(student);
    }

    @Override
    public int updateStudentFe(Student student) {
        return studentMapper.updateStudentFe(student);
    }

    @Override
    public int updateStudentFeW(Student student) {
        return studentMapper.updateStudentFeW(student);
    }

    @Override
    public int updateStudentFeY(Student student) {
        return studentMapper.updateStudentFeY(student);
    }

    @Override
    public List<Student> queryStudentByName(String studentName) {
        return studentMapper.queryStudentByName(studentName);
    }

    @Override
    public List<Student> queryStudentByStudentFeState(String studentFeState) {
        return studentMapper.queryStudentByStudentFeState(studentFeState);
    }

    @Override
    public List<Student> queryStudent() {
        return studentMapper.queryStudent();
    }
}
